package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.WuzirukuMapper;
import com.ruoyi.jiuzai.domain.Wuziruku;
import com.ruoyi.jiuzai.service.IWuzirukuService;

/**
 * wuzirukuService业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Service
public class WuzirukuServiceImpl implements IWuzirukuService 
{
    @Autowired
    private WuzirukuMapper wuzirukuMapper;

    /**
     * 查询wuziruku
     * 
     * @param rukuId wuziruku主键
     * @return wuziruku
     */
    @Override
    public Wuziruku selectWuzirukuByRukuId(Long rukuId)
    {
        return wuzirukuMapper.selectWuzirukuByRukuId(rukuId);
    }

    /**
     * 查询wuziruku列表
     * 
     * @param wuziruku wuziruku
     * @return wuziruku
     */
    @Override
    public List<Wuziruku> selectWuzirukuList(Wuziruku wuziruku)
    {
        return wuzirukuMapper.selectWuzirukuList(wuziruku);
    }

    /**
     * 新增wuziruku
     * 
     * @param wuziruku wuziruku
     * @return 结果
     */
    @Override
    public int insertWuziruku(Wuziruku wuziruku)
    {
        return wuzirukuMapper.insertWuziruku(wuziruku);
    }

    /**
     * 修改wuziruku
     * 
     * @param wuziruku wuziruku
     * @return 结果
     */
    @Override
    public int updateWuziruku(Wuziruku wuziruku)
    {
        return wuzirukuMapper.updateWuziruku(wuziruku);
    }

    /**
     * 批量删除wuziruku
     * 
     * @param rukuIds 需要删除的wuziruku主键
     * @return 结果
     */
    @Override
    public int deleteWuzirukuByRukuIds(Long[] rukuIds)
    {
        return wuzirukuMapper.deleteWuzirukuByRukuIds(rukuIds);
    }

    /**
     * 删除wuziruku信息
     * 
     * @param rukuId wuziruku主键
     * @return 结果
     */
    @Override
    public int deleteWuzirukuByRukuId(Long rukuId)
    {
        return wuzirukuMapper.deleteWuzirukuByRukuId(rukuId);
    }
}
